package com.alex.excel.config;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;


@AllArgsConstructor
public enum ElementTypePath {
	
	SET("java.util.Set"),MAP("java.util.Map"),LIST("java.util.List");

	@Getter
	@Setter
	private String path;

	
	/**
	 * 
	* 获取元素
	* @param path
	* @return  ElementTypePath 返回类型  
	* @throws
	 */
	public static ElementTypePath getElementTypePath(String path){
		for(ElementTypePath elementTypePath:ElementTypePath.values()){
			if(elementTypePath.path.equals(path)){
				return elementTypePath;
			}
		}
		return null;
		
	}
	
	@SuppressWarnings("static-access")
	@Override
	public String toString() {
		return this.valueOf(path).getPath();
	}



}
